<?php
define('TIME_NOW',time());
ini_set ('zend.ze1_compatibility_mode','off');
putenv("Asia/Saigon");
date_default_timezone_set('Asia/Bangkok');

set_magic_quotes_runtime(false);

define('DEVELOPING',true);
define('CHECK_DOMAIN', 0);//check valid domain (tuannk)
define('ROOT_PATH', str_replace(array('core/'),array(''),strtr(dirname( __FILE__ ) ."/",array('\\'=>'/'))));
$webroot=str_replace('\\','/','http://'.$_SERVER['HTTP_HOST'].(dirname($_SERVER['SCRIPT_NAME'])?dirname($_SERVER['SCRIPT_NAME']):''));
$webroot.=$webroot[strlen($webroot)-1]!='/'?'/':'';
define('WEB_ROOT',$webroot);
unset($webroot);

// Master server DB
define('DB_MASTER_SERVER','localhost');
define('DB_MASTER_USER','root');
define('DB_MASTER_PASSWORD','');
define('DB_MASTER_NAME','muachungbeta');

//Set default charset DB : LATIN / UTF8
define('DB_CHARSET','UTF8');

//my server
$server_list=array(
  'localhost/muachung/mc.muachung/',
);
define('MEMCACHE_ON', 1);
$memcache_server =  array(
  array("host"=>"127.0.0.1","port"=>"11211")
);
define('MEMCACHE_ID','mMuachung'); // dung lam ID phan biet session giua cac site mini shop
//System Constants
//Session config
/*
 memcache - session memcache
 db - session database
 file - session file
*/
define( 'SESSION_TYPE' , '');
define('MEMCACHE_SESSION_HOST', "127.0.0.1");
define('MEMCACHE_SESSION_PORT', "11211");
define('_SESS_TIME_EXPIRE', "10800");

define('DIR_CACHE', ROOT_PATH."_cache/");
define('DIR_MODULE', ROOT_PATH."modules/");
define('PAGE_CACHE_DIR',DIR_CACHE.'pages/');
define('PAGE_CACHE',1);
define('CACHE_ON', 1);
define('CACHE_DB', 1);
define('REWRITE_ON', 1);//rewrite URL
define('USER_ACTIVE_ON',1); // Bat acctive user qua email
define('BRANDNAME_SMS',1); // gui sms = brandname
define('ONLY_BRANDNAME',1); // chi gui cho khach bang brandname

//config image
define('FTP_IMAGE_SERVER','192.168.4.142');
define('FTP_IMAGE_USER','muachung');
define('FTP_IMAGE_PASSWORD','I4DNGhIpUB1ECqtrnyzx');
define('IS_UPLOAD_IMAGE_SERVER', 1); //1=yes:0=no

define('IMAGE_PATH','muachung.vcmedia.vn/');
define('IMAGE_PATH_STATIC','_img_server/');
define('IMAGE_CODE_DIR','code/');


//defined logo & favicon
define('DEFAULT_SITE_LOGO', WEB_ROOT.'style/images/logo.png');
define('DEFAULT_SITE_FAVICON', WEB_ROOT.'favicon.ico');
define('SITEINFO_FOLDER', 'siteInfo/');

//defined for avatar
define('DEFAULT_IMAGE_PATH', WEB_ROOT.'style/images/default/');

define('FOLDER_PREFIX', 'size');

define('DEFAULT_AVATAR', WEB_ROOT.'style/images/default_avatar.png');

define('AVATAR_FOLDER', 'avatar/');

define('MAP_FOLDER', 'map/');

define('PRODUCT_FOLDER', 'product/');

define('FEATURE_FOLDER', 'feature/');
define('CATEGORY_FOLDER', 'category/');
define('MANUFACT_FOLDER', 'manufact/');

define('NEWS_FOLDER', 'news/news/');
define('VIDEO_FOLDER', NEWS_FOLDER.'video/');
define('VIDEO_FLASH_FOLDER', 'news/video/');

//all sizes
$image_sizes = array(
 'product' => array(
	209	=> array('width' => 209, 'height' => 0),
	82	=> array('width' => 82,  'height' => 0),
	487	=> array('width' => 487, 'height' => 0)
  ),
  'avatar'=> array(
	35 	=> array('width' => 35,  'height' => 35),
	50 	=> array('width' => 50,  'height' => 50),
	100 => array('width' => 100, 'height' => 100)
  ),
  'category' => array(
	184	=> array('width' => 184, 'height' => 150)
  ),
  'news' => array(
	100	=> array('width' => 100, 'height' => 110), //news image size
	260	=> array('width' => 260, 'height' => 190)  //news video image size
  ),
  'map' => array(
	690	=> array('width' => 690, 'height' => 252)  //map image size
  ),
  'manufact' => array(
	250 => array('width' => 250, 'height' => 250)  //logo manufact
  ),
);

?>